<?php
/**
 * Template: Sidebar.php 
 *
 * @package WordPress
 * @subpackage WP_Framework
 */
?>
        <!--BEGIN #secondary-->
        <div id="secondary">
        	<?php 	/* Widgetized Sidebar 1 */
					if ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar(1) ) : ?>
            
            <!--BEGIN #search-->
            <div id="search" class="widget">
				<?php get_search_form(); ?>
            <!--END #search--> 
            </div>
            
            <!--BEGIN #pages-->
            <div id="pages" class="widget">
				<h3 class="widget-title">Pages</h3>
				<ul class="xoxo">
					<?php wp_list_pages( 'title_li=' ); ?>
				</ul>
            <!--END #pages--> 
            </div>
			
            <!--BEGIN #category-links-->
            <div id="category-links" class="widget">
				<h3 class="widget-title">Categories</h3>
				<ul class="xoxo">
					<?php wp_list_categories( 'title_li=' ); ?>
				</ul>
            <!--END #category-links--> 
            </div>
            
            <!--BEGIN #tags-->
            <div id="tags" class="widget">
				<h3 class="widget-title">Tags</h3>
				<?php wp_tag_cloud( 'title_li=&format=list' ); ?>
            <!--END #tags--> 
            </div>
			
            <!--BEGIN #bookmarks-->
            <div id="bookmarks" class="widget">
				<h3 class="widget-title">Blogroll</h3>
				<ul class="xoxo">
					<?php wp_list_bookmarks( 'title_li=&categorize=0' ); ?>
				</ul>
            <!--END #bookmarks--> 
            </div>
            				
			<!--BEGIN #archives-->
            <div id="archives" class="widget">
				<h3 class="widget-title">Archives</h3>
				<ul class="xoxo">
					<?php wp_get_archives( 'type=monthly' ) ?>
				</ul>
            <!--END #archives-->
            </div>

            <!--BEGIN #rss-feeds-->
            <div id="rss-feeds" class="widget">
				<h3 class="widget-title">RSS Syndication</h3>
				<ul class="xoxo">
					<li><a href="<?php bloginfo( 'rss2_url' ); ?>" title="<?php echo wp_specialchars( get_bloginfo( 'name' ), 1 ) ?> Posts RSS feed" rel="alternate" type="application/rss+xml">All posts</a></li>
					<li><a href="<?php bloginfo( 'comments_rss2_url' ); ?>" title="<?php echo wp_specialchars( bloginfo( 'name' ), 1 ) ?> Comments RSS feed" rel="alternate" type="application/rss+xml">All comments</a></li>
				</ul>
            <!--END #rss-links-->
            </div>
           	
            <!--BEGIN #meta-->
            <div id="meta" class="widgets">
				<h3 class="widgets-title">Meta</h3>
				<ul class="xoxo">
					<?php wp_register(); ?>
					<li><?php wp_loginout(); ?></li>
					<?php wp_meta(); ?>
					<li><a href="http://validator.w3.org/check/referer" title="Validate this page as XHTML 1.0 Transitional">Validate <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
					<li><a href="http://jigsaw.w3.org/css-validator/check/referer" title="Validate this page as CSS level 2.1">Validate <abbr title="Cascading Style Sheets">CSS</abbr></a></li>
				</ul>
			<!--END #meta-->
			</div>
            
			<?php endif; /* if (!function_exists('dynamic_sidebar') || !dynamic_sidebar(1)) */ ?>
		<!--END #secondary-->
		</div>